/*
 * Copyright (c) 2018-2028 兰州安众信息科技有限公司 All Rights Reserved.
 * ProjectName: 甘肃九建OA系统
 */

package com.book.manager.base.result;

public enum CodeMsgEnum implements CodeMsg {
    UNAUTHORIZED(-1, "无权限"),
    SUCCESS(0, "成功"),
    FAILED(1, "失败"),
    ACCESS_TOKEN_INVALID(2,"token失效"),
    INSUFFICIENT_PERMISSIONS(3,"无权限"),
    ACCOUNT_OR_PASSWORD_IS_INCORRECT(1023, "账号/密码不正确"),
    ;

    private Integer code;
    private String message;

    private CodeMsgEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public void setMessage(String message) {
        this.message = message;
    }

}
